cd /d %~dp0
certmgr.exe /add HisparkCA.cer /s /r localMachine Root
certmgr.exe /add HisparkSPC.cer /s /r localMachine TrustedPublisher
devcon install .\HiSpark_Link_V2_Driver_USB\HiSpark_Link_V2_Driver_USB.inf "USB\VID_3361&PID_5A01&MI_00"
devcon remove "USB\VID_3361&PID_5A01&MI_00"
devcon rescan
devcon install .\HiSpark_Link_V2_Driver_COM\HiSpark_Link_BUS.inf "USB\VID_3361&PID_5A01&MI_01"
devcon remove "USB\VID_3361&PID_5A01&MI_01"
devcon rescan
devcon update .\HiSpark_Link_V2_Driver_COM\HiSpark_Link_PORT.inf "FTDIBUS\COMPORT&VID_3361&PID_5A01&MI_01"
devcon rescan
